package net.wofly.right.service.impl;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import net.wofly.right.domain.UserRegisterCheck;
import net.wofly.right.repository.UserRegisterCheckRepository;
import net.wofly.right.service.IUserRegisterCheckService;

@Service("iUserRegisterCheckService")
@Transactional
public class UserRegisterCheckServiceImpl implements IUserRegisterCheckService {

	@Autowired
	UserRegisterCheckRepository userRegisterCheckRepository;

	@Override
	public UserRegisterCheck save(UserRegisterCheck entity) {
		return userRegisterCheckRepository.save(entity);
	}

	@Override
	public void delete(UserRegisterCheck entity) {
		userRegisterCheckRepository.delete(entity);
	}

	@Override
	public void delete(String key) {
		userRegisterCheckRepository.delete(key);
	}

	@Override
	public UserRegisterCheck findOne(String key) {
		return userRegisterCheckRepository.findOne(key);
	}

	@Override
	public List<UserRegisterCheck> save(List<UserRegisterCheck> entityList) {
		return (List<UserRegisterCheck>) userRegisterCheckRepository.save(entityList);
	}
}
